package com.wza.interview.entities;

/**
 * <一句话功能简述>
 * <功能详细描述>
 *
 * @author Administrator
 * @version [版本号, 2018/11/16]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class Person
{
    private String Id;

    private String name;

    private String gender;

    @Override
    public boolean equals(Object o)
    {
        if (this == o)
            return true;
        if (!(o instanceof Person))
            return false;

        Person person = (Person) o;

        if (Id != null ? !Id.equals(person.Id) : person.Id != null)
            return false;
        if (name != null ? !name.equals(person.name) : person.name != null)
            return false;
        return gender != null ?
                gender.equals(person.gender) :
                person.gender == null;
    }

    @Override
    public int hashCode()
    {
        int result = Id != null ? Id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (gender != null ? gender.hashCode() : 0);
        return result;
    }
}
